#ifndef __C_CROSSFIRE_CFGREADER_H_
#define __C_CROSSFIRE_CFGREADER_H_

#include "ICFGReader.h"
#include <windows.h>
#include <stdio.h>

namespace cfe
{

#define strcmp_ignorecase(str1, str2)\
  (CompareString(LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE, str1, (int)wcslen(str1), str2, (int)wcslen(str2)) == CSTR_EQUAL)

class CCFGReader : public ICF_CFGReader
{
private:
  FILE *m_file;
public:
  bool Init(char *szFileName);
  CCFGReader();
  ~CCFGReader();

  bool IsReady();
  bool ReadEntry(char **ppNameOut, char **ppValueOut);
};

};

#endif